<?php

//换成自己的接口信息
$appid = 'wx089c8d48d16b8bd1';
if (isset($_GET['code'])) {
    echo $_GET['code'];
    exit;
    // code...
}
header('location:https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$appid.'&redirect_uri=http://qwuser.wshare.club/wxlogin.php&response_type=code&scope=snsapi_userinfo&state=123&connect_redirect=1#wechat_redirect');

